import numpy as np


def dump(tensor, name):
    arr = tensor.detach().numpy()
    np.save(name, arr)


def load(name: str):
    return np.load(name + ('.npy' if not name.endswith('.npy') else ''))


_d = dump
_l = load


